<div class="row">
  <div class="col-md-6 col-sm-8 col-sm-push-2">
    <form  class="form form-horizontal" [formGroup]="contentForm" >
      <div class="one-form-header"></div>
      <div class="one-form-body">
        <div class="form-group">
        <label for="content_deal_siteCode" class="col-xs-3 control-label">站点编号:</label>
        <div class="col-xs-9">
          <input type="hidden" id="id" formControlName="id" name="id">
          <input type="text" class="form-control" placeholder="站点编号" id="content_deal_siteCode"  readonly formControlName="siteCode" >
        </div>
      </div>
        <div class="form-group">
          <label for="content_deal_siteName" class="col-xs-3 control-label">站点名称:</label>
          <div class="col-xs-9">
            <input type="text" class="form-control" placeholder="站点名称" id="content_deal_siteName"  readonly formControlName="siteName" >
          </div>
        </div>
        <div class="form-group">
          <label for="content_deal_sendTime" class="col-xs-3 control-label">报警时间:</label>
          <div class="col-xs-9">
            <input type="text" class="form-control" placeholder="报警时间" id="content_deal_sendTime"  readonly formControlName="sendTime" >
          </div>
        </div>
        <div class="form-group">
          <label for="content_deal_content" class="col-xs-3 control-label">报警内容:</label>
          <div class="col-xs-9">
            <textarea  class="form-control" placeholder="报警内容" id="content_deal_content"  readonly formControlName="content" ></textarea>
          </div>
        </div>
        <div class="form-group">
          <label for="content_deal_type" class="col-xs-3 control-label" >报警类型:</label>
          <div class="col-xs-9">
            <!-- 下拉框 -->
            <select class="multiselect" id="content_deal_type" class="form-control" formControlName="type" >
              <option value="">-- 请选择报警类型 --</option>
              <option *ngFor="let type of types" [value]="type.code">{{type.name}}</option>
            </select>
          </div>
        </div>
        <div class="form-group">
          <label for="content_deal_sendMode" class="col-xs-3 control-label" >报警方式:</label>
          <div class="col-xs-9">
            <!-- 下拉框 -->
            <select class="multiselect" id="content_deal_sendMode" class="form-control" formControlName="sendMode"  >
              <option value="1">应用内</option>
              <option value="2">短信</option>
              <option value="3">邮件</option>
            </select>
          </div>
        </div>
        <div class="form-group">
          <label for="content_deal_handleStatus" class="col-xs-3 control-label" >处理状态:</label>
          <div class="col-xs-9">
            <!-- 下拉框 -->
            <select class="multiselect" id="content_deal_handleStatus" class="form-control" formControlName="handleStatus" >
              <option value="0">未处理</option>
              <option value="1">已处理</option>
            </select>
          </div>
        </div>


        <div class="form-group">
          <label for="content_deal_handler" class="col-xs-3 control-label">处理人:</label>
          <div class="col-xs-9">
            <input type="text" class="form-control" placeholder="请填写处理人" id="content_deal_handler"formControlName="handler" maxlength="14" >
            <!--<div *ngIf="formErrors.handler" class="has-error">-->
              <!--<label class="control-label"><i class="fa fa-times-circle-o"></i>{{formErrors.handler}} </label>-->
            <!--</div>-->
          </div>
        </div>

      </div>
      <div class="one-form-footer">
        <div class="pull-right">
          <button class="btn btn-default" type="reset" (click)="canceldeal()">取消</button>
          <button class="btn btn-success" type="button" [disabled]="!contentForm.valid||flag" (click)="onSubmit()">保存</button>
        </div>
      </div>
    </form>
  </div>
</div>

